<% layout('layouts/default.html', {title: '站点地图', libs: []}){ %>
<style type="text/css">
	h2 {padding-left:10px;}
	h3.title {padding:5px 5px;margin:15px 8px 10px;}
	dl.map{border:1px solid #ddd;border-top:0;margin:10px 8px 8px;}
	dl.map dt{border-top:1px solid #ddd;padding:10px 15px;} dl.map dd{margin:20px 30px 30px;}
	dl.map span{border:1px solid #ddd;padding:8px 15px;margin-right:10px;border-radius:5px;}
	dl.map span:hover{border:1px solid #bbb;background:#f1f1f1;}
	dl.map span a:hover{text-decoration:none;color:#333;}
</style>
<div class="row">
	<h2>站点地图</h2>
	<#html:foreach items="${siteList()}" var="site">
		<h3 class="title breadcrumb">${site.siteName}</h3>
		<dl class="map">
			<#html:foreach items="${categoryList(site.siteCode, '0', -1, '')}" var="category">
			<dt>
	    		<a href="${category.url}" target="_blank">${category.categoryName}</a>
	    	</dt>
	    	<#html:set value="${categoryList(site.siteCode, category.categoryCode, -1, '')}" export="categoryList" />
		    	<#html:if test="${isNotEmpty(categoryList)}">
					<dd>
						<#html:foreach items="${categoryList}" var="category">
				    		<span><a href="${category.url}" target="_blank">${category.categoryName}</a></span>
						</#html:foreach>
					</dd>
				</#html:if>
			</#html:foreach>
		</dl>
	</#html:foreach>
</div>
<% } %>
